package domain;

// Generated 19.Eki.2012 14:01:16 by Hibernate Tools 3.4.0.CR1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;

import javax.persistence.CascadeType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * LogServiceCallErrorDAO generated by hbm2java
 */
@Entity
@Table(name = "IBTOOLS_LOG_SERVICE_CALL_ERROR", schema = "T32556")
public class LogServiceCallErrorDAO implements java.io.Serializable {

	/***
	 * , cascade = CascadeType.ALL
	 */
	
	private Long oid;
	private LogServiceCallDAO logServiceCall;
	private String errorText;
	private int part;

	public LogServiceCallErrorDAO() {
	}

	public LogServiceCallErrorDAO(LogServiceCallDAO logServiceCall,
			String errorText, int part) {
		this.logServiceCall = logServiceCall;
		this.errorText = errorText;
		this.part = part;
	}

	@SequenceGenerator(name = "generator")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "OID", unique = true, nullable = false, scale = 0)
	public Long getOid() {
		return this.oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	@JoinColumn(name = "LOG_SERVICE_CALL", nullable = false)
	public LogServiceCallDAO getLogServiceCall() {
		return this.logServiceCall;
	}

	public void setLogServiceCall(LogServiceCallDAO logServiceCall) {
		this.logServiceCall = logServiceCall;
	}

	@Column(name = "ERROR_TEXT", nullable = false, length = 100)
	public String getErrorText() {
		return this.errorText;
	}

	public void setErrorText(String errorText) {
		this.errorText = errorText;
	}

	@Column(name = "PART", nullable = false, precision = 8, scale = 0)
	public int getPart() {
		return this.part;
	}

	public void setPart(int part) {
		this.part = part;
	}

}
